AprilSylph / XKit-Rewritten

🧰 The enhancement suite for Tumblr's new web interface
GNU General Public License v3.0
294 stars 48 forks source link

Missing functionality on posts in Tumblr Communities #1441

Open marcustyphoon opened 7 months ago

marcustyphoon commented 7 months ago

Platform

MacOS 14.4.1 arm64

Browser

Chrome 123.0.6312.87

Addon version

v0.23.4

Details

Needs tweaking:

Maybe:


The Tumblr Communities feature, which is currently in a closed beta, contains posts that work differently than other posts in the Tumblr ecosystem, and also include changes to the way the API data underlying posts are used. This currently causes/probably will cause some XKit Rewritten functionality not to work properly within communities.

Particularly, community posts are displayed (generally speaking) as if they belong to the blog of the user who composed them, but the API data is more similar to a submission from that user to a generic blog.

In the case of Themed Posts, this just results in erroneous behavior: we want to match the theme we render a post with the way it otherwise appears, so we'll need a method to get a post's "blog" that isn't actually just the blog property of its API data. A number of other scripts look like they'll fall into this category (I can't tell right now; I'm not in the beta).

In some other cases, it would make sense for scripts to treat the submitting blog of a submission equally with the owning blog. For example, Quick Reblog automatically suggests a tag for the blog name; it may as well suggest the submitting blog's name too. In these cases there doesn't need to be special behavior for community posts.

marcustyphoon commented 5 months ago

Needs tweaking:

Maybe: