Commit Graph

30 Commits

Author SHA1 Message Date
Abdullah Atta
b98612be7a sync: migrate sync devices from fs to mongodb 2025-12-22 20:11:43 +05:00
Abdullah Atta
5ca9c142e3 monograph: {id}/stats -> {id}/analytics 2025-11-08 12:42:10 +05:00
01zulfi
23b0b2ddfc monographs: add stats endpoint (#69)
* also don't mark monograph for sync when tracking view count
2025-11-07 10:28:03 +05:00
01zulfi
7a8873db32 monographs: fix view count setting to 0 when updating (#68) 2025-11-07 09:59:52 +05:00
01zulfi
294769fd71 monographs: track view count (#67) 2025-11-06 13:15:23 +05:00
Abdullah Atta
6e35edb715 global: add null safety checks 2025-10-14 21:15:51 +05:00
Abdullah Atta
be432dfd24 global: migrate to using ILogger 2025-10-14 09:29:07 +05:00
Abdullah Atta
d1421d640f identity: fix user subscription claim value incorrect for legacy pro users 2025-10-13 11:27:07 +05:00
Abdullah Atta
3a2e5f884b monograph: refactor to fix type errors 2025-10-07 16:44:15 +05:00
Abdullah Atta
2952dd2c63 sync: fix monograph sync 2025-10-07 16:44:15 +05:00
Abdullah Atta
908d64bd4f api: fix minor issues 2025-10-07 16:44:15 +05:00
Abdullah Atta
cfe2875a67 api: refactor user subscription check for monograph embed & links 2025-10-07 16:44:15 +05:00
Abdullah Atta
4a0aee1c44 monograph: fix json content serialized as html 2025-09-15 12:30:28 +05:00
Abdullah Atta
97fbd3226d monograph: add support for webrisk api for analyzing urls for pro users 2025-09-15 11:22:37 +05:00
Abdullah Atta
0f43b3ee66 monograph: remove links, embeds & images for non-pro users 2025-09-15 09:19:16 +05:00
Abdullah Atta
a5b3a12914 monograph: fix some monographs can't be unpublished 2025-08-19 14:23:56 +05:00
Abdullah Atta
2f361db9df monographs: fix monographs not appearing on clients 2025-08-18 23:44:22 +05:00
01zulfi
8df70c81fc monograph: fix existing item condition in update endpoint (#40) 2025-08-04 13:00:55 +05:00
01zulfi
bf2e6efeff monograph: add sync support (#39)
* monograph: add sync support

* monograph: fix password field && improve syncing logic && fix delete endpoint

* sync: get rid of unnecessary .ToList & ToListAsync

* sync: AddIdsToAllDevices is no longer asynchronous

* monograph: simplify and fix several bugs

- we were sending the triggerSync event to all users instead of all devices
- asynchronous methods did not have the `Async` suffix
- we weren't properly replacing the deleted monograph

* monograph: fix minor issues
* fix publishing
* don't return deleted monograph in monographs/:id endpoint
* persist UserId when soft deleting monograph

* monograph: check soft delete status in several endpoints

---------

Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
2025-08-04 11:51:15 +05:00
Abdullah Atta
c6bcd4a84d monograph: add new ItemId property that is a simple string
This fixes the issue where an invalid objectid causes error when publishing a monograph
2024-11-28 14:21:57 +05:00
Abdullah Atta
309dcafa02 monograph: add new id/view endpoint for self destruction 2024-10-12 11:59:10 +05:00
Abdullah Atta
336976dd1e monographs: Id -> _id 2024-06-07 15:30:47 +05:00
Abdullah Atta
7ce02d0193 api: only fetch monographs' ids 2024-06-07 10:50:47 +05:00
Abdullah Atta
ce7fb81df3 monographs: self destruct monographs on api call 2024-03-05 10:24:13 +05:00
Abdullah Atta
61adea6a06 monographs: check monograph size on update 2024-03-05 10:23:36 +05:00
Abdullah Atta
fc757674a9 sync: improve announcements & monograph query performance 2023-09-09 20:23:16 +05:00
Abdullah Atta
f38e61d58f global: update copyright year to 2023 2023-01-16 13:33:47 +05:00
Abdullah Atta
3f89ebc214 global: move more config to env vars 2022-12-29 11:18:29 +05:00
Abdullah Atta
021f098233 chore: add license & readme 2022-12-28 16:52:22 +05:00
Abdullah Atta
d2217adce7 open source Notesnook API 2022-12-28 16:20:25 +05:00