Code Monkey home page Code Monkey logo

Comments (4)

cheeaun avatar cheeaun commented on July 1, 2024 2

Phanpy's behaviour for followed hashtags should be similar to Ivory; only show hashtag indicator for posts from non-following accounts (not including boosted posts, group posts, own posts, etc). These are the steps:

  1. Pull in and store all followed hashtags (locally).
  2. When loading posts in the timeline, find all posts that contain followed hashtags, grab the posts' accounts, (batch-)check their relationships (following or not).
  3. Add hashtag indicator for posts from non-following accounts.

Unlike Ivory showing 1 hashtag, Phanpy shows max 3 hashtags (unordered, magic number), as a post could contain more than 1 followed hashtags.


Nevertheless, this (including any form of contextual indicators) is better done in the backend API in my opinion. On the client-side (Phanpy, and all other clients), the above implementation is honestly quite hacky and tedious just to show one indicator on the post.

from mastodon.

ThisIsMissEm avatar ThisIsMissEm commented on July 1, 2024

There's a long standing ticket for this, which I know the team knows about, because it was part of my interview with Mastodon gGmbH last June.

it's just really difficult to fix without requiring an extremely expensive complete rebuild of everyone's timelines (on larger instances this could take days or weeks).

it's gonna need a really interesting solution to solve it in a live/rolling migration way, that doesn't wipe out everyone's feeds.

the place to start looking is in app/lib/feed_manager.rb

from mastodon.

brendanjones avatar brendanjones commented on July 1, 2024

Plenty of apps do this client side. Here’s Phanpy.social showing a post from a followed hashtag, a post from a follow, and a bunch of boosts from my follows. Note the subtle colouring also denoting which is which.

IMG_9417

from mastodon.

ThisIsMissEm avatar ThisIsMissEm commented on July 1, 2024

I'm gunna ask @cheeaun to explain phanpy's behaviour, but basically the timelines returned from the mastodon API do not include why something is in the timeline.

Apps like phanpy just try to guess why, by pulling in all your followed hashtags & hoping that's why the post was inserted into the timeline feed or ranked where it was.

To properly implement this with the timeline API returning back context for "why" is a major engineering lift because it has to be done extremely carefully.

from mastodon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.