Bluesky app fork with some witchin' additions ๐Ÿ’ซ witchsky.app
bluesky fork client

Custom post phrases remove username in reposted-by tags #42

closed opened by lemmaeof.gay edited

so no joke, i figured out the issue but currently im not sure how to approach this but the reason this is broken is insanely stupid

basically the text gets rendered by this code <Trans>Reposted by {reposter}</Trans> inside PostFeedReason.tsx

the replace all code inside linguiHook.ts is replacing ALL instances of post, which includes the {reposter} part from what i can tell, renaming the {reposter} const to something like {reskeeter} fixes this issue INSTANTLY, it also gets fixed by setting the custom post word back to post/posts

so the solution would either be: code a edge case that specifically avoids things inside of "{}" or straight up just rename the "{reposter}" and pray nothing else is broken

well, renaming {reposter} worked for me at some point but now doing that wont apply the text anymore?? now im insanely fucking confused what

okay i can 100% confirm now tho the {reposter} part is being replaced, i forced the code to print all of the replaced text output and received

    "tonYru": [
        "Resillyed by ",
        [
            "resillyer"
        ]
    ],

if corrected it would be

    "tonYru": [
        "Resillyed by ",
        [
            "reposter"
        ]
    ],

renamed {reposter} to {reskeeter} in https://tangled.org/jollywhoppers.com/witchsky.app/commit/0c0d7c226fbe9de6e2cfa0a1493eb6e7808fab4a. I tried searching for other similar cases but never finished or found one...

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 3
AT URI
at://did:plc:fxgreqfae3vqhyjsntsikfux/sh.tangled.repo.issue/3mdhw7ypr6522