stacker.news/fragments
ekzyis 2597eb56f3
Item mention notifications (#1208)
* Parse internal refs to links

* Item mention notifications

* Also parse item mentions as URLs

* Fix subType determined by referrer item instead of referee item

* Ignore subType

Considering if the item that was referred to was a post or comment made the code more complex than initially necessary.

For example, notifications for /notifications are deduplicated based on item id and the same item could refer to posts and comments, so to include "one of your posts" or "one of your comments" in the title would require splitting notifications based on the type of referred item.

I didn't want to do this but also wanted to have consistent notification titles between push and /notifications, so I use "items" in both places now, even though I think using "items" isn't ideal from a user perspective. I think it might be confusing.

* Fix rootText

* Replace full links to #<id> syntax in push notifications

* Refactor mention code into separate functions
2024-06-03 12:12:42 -05:00
..
blockHeight.js Add block height to price carousel (#484) 2023-09-12 10:56:02 -05:00
chainFee.js Add chain fees to price carousel (#658) 2023-12-20 16:06:22 -06:00
comments.js Add bot badge to items created with API key (#1209) 2024-05-30 16:23:07 -05:00
invites.js better organize user graphql types 2023-11-09 19:05:35 -06:00
items.js Add bot badge to items created with API key (#1209) 2024-05-30 16:23:07 -05:00
notifications.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
price.js Add proxy with cache for coinbase API requests (#226) 2023-01-27 17:20:33 -06:00
rewards.js allow viewing reward ranges 2023-08-29 19:13:21 -05:00
subs.js Add createdAt to territory header 2024-04-03 01:17:32 +02:00
users.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
wallet.js Show preimage of confirmed withdrawals (#1106) 2024-04-25 19:33:24 -05:00