Skip to content

Commit d78a9cc

Browse files
authored
Remove X share button from package page (#10707)
Remove the X (Twitter) share link and its icon markup from the package display view. The anchor and image/fallback for the X share button were deleted, leaving the Facebook share and atom feed links unchanged. fixes #10672
1 parent 5b3af9e commit d78a9cc

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,11 +1491,6 @@
14911491
src="@Url.Absolute("~/Content/gallery/img/facebook.svg")"
14921492
@ViewHelpers.ImageFallback(Url.Absolute("~/Content/gallery/img/facebook-24x24.png")) />
14931493
</a>
1494-
<a href="https://x.com/intent/post?url=@absolutePackageUrl&text=@encodedText" target="_blank" rel="nofollow noreferrer">
1495-
<img width="24" height="24" alt="Share this package on X"
1496-
src="@Url.Absolute("~/Content/gallery/img/x.svg")"
1497-
@ViewHelpers.ImageFallback(Url.Absolute("~/Content/gallery/img/x-24x24.png")) />
1498-
</a>
14991494
@if (Model.IsAtomFeedEnabled && Model.Owners.Any())
15001495
{
15011496
<a href="@Url.PackageAtomFeed(Model.Id)" data-track="atom-feed">

0 commit comments

Comments
 (0)