Skip to content

Commit

Permalink
Merge pull request #495 from FineFindus/feat/trending-links-timeline-…
Browse files Browse the repository at this point in the history
…improvements

feat(Timeline/TrendingLinks): display URL, update icon
  • Loading branch information
LucasGGamerM authored Aug 4, 2024
2 parents 09185fa + 89ef482 commit d1a2a70
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ protected FilterContext getFilterContext() {

@Override
public Uri getWebUri(Uri.Builder base) {
//TODO: add URL link once web version implements a UI
return base.path("/explore/links").build();
return base.path("/links").appendPath(trendingLink.url).build();
}

@Override
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion mastodon/src/main/res/menu/trending_links_timeline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/open_link"
android:icon="@drawable/ic_fluent_document_one_page_24_filled"
android:icon="@drawable/ic_fluent_open_24_regular"
android:showAsAction="always"
android:title="@string/mo_trending_link_read"/>
</menu>

0 comments on commit d1a2a70

Please sign in to comment.