stacker.news/api/resolvers
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
..
admin.js snl live banner 2023-06-20 09:57:06 -05:00
apiKey.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
blockHeight.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
chainFee.js [1124] - Use Mempool For Fee Rate (#1171) 2024-05-15 10:26:49 -05:00
growth.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
image.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00
index.js Add chain fees to price carousel (#658) 2023-12-20 16:06:22 -06:00
invite.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
item.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
lnurl.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
message.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
notifications.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
ofac.js mute territories 2023-12-30 17:16:09 -06:00
price.js require sub selection, allow editting 2023-05-10 19:30:51 -05:00
referrals.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
rewards.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00
search.js Search bookmarks (#1075) 2024-04-19 13:24:48 -05:00
serial.js count pending withdrawals toward balance 2024-04-27 18:37:57 -05:00
sub.js Merge serializeInvoiceable with serialize without bug (#1051) 2024-04-09 19:49:20 -05:00
upload.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00
user.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
wallet.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00