1482 Commits

Author SHA1 Message Date
ekzyis
1af6a5c98d Remove unnecessary avatar check during image fees calculation 2023-11-02 01:48:34 +01:00
ekzyis
e7175fbe87 Use megabytes in error message 2023-11-02 01:48:34 +01:00
ekzyis
78c756a42c Add comments regarding avatar upload 2023-11-02 01:48:34 +01:00
ekzyis
726f10c396 Allow anons to get presigned URLs 2023-11-02 01:48:34 +01:00
ekzyis
ed3a681950 Add image fees during item creation/update
* we calculate image fees during item creation and update now
* function imageFees returns queries which deduct fees from user and mark images as paid + fees
* queries need to be run inside same transaction as item creation/update
2023-11-02 01:48:34 +01:00
ekzyis
900592020f Add Upload.paid boolean column
One item can have multiple images linked to it, but an image can also be used in multiple items (many-to-many relation).

Since we don't really care to which item an image is linked and vice versa, we just use a boolean column to mark if an image was already paid for.

This makes fee calculation easier since no JOINs are required.
2023-11-02 01:48:34 +01:00
ekzyis
30aed4e805 Use Github style upload
* removed upfront fees
* removed images provider since we no longer need to keep track of unsubmitted images on the client
* removed User.images resolver
* removed deleteImage mutation
* use Github style upload where it shows ![Uploading <filename>...]() first and then replaces that with ![<filename>](<url>) after successful upload
2023-11-02 01:48:34 +01:00
ekzyis
167a4189ca Add fees for presigned URLs 2023-11-02 01:48:34 +01:00
ekzyis
eb4700070f Overwrite old avatar 2023-11-02 01:48:34 +01:00
ekzyis
ef0506d7c6 Allow items to have multiple uploads linked 2023-11-02 01:48:34 +01:00
ekzyis
51bc4b82d0 Also delete objects in S3 2023-11-02 01:48:34 +01:00
ekzyis
086e1aea3a Mark images as submitted on client after successful mutation 2023-11-02 01:48:34 +01:00
ekzyis
f79792cd4d Add margin-top 2023-11-02 01:48:34 +01:00
ekzyis
db525e9195 Mark S3 images as submitted in imgproxy job 2023-11-02 01:48:34 +01:00
ekzyis
a61d00ba8b Fetch unsubmitted images from database 2023-11-02 01:48:34 +01:00
ekzyis
9ac774c0e7 Link and remove image 2023-11-02 01:48:34 +01:00
ekzyis
d2b93502bc Show uploaded images below text input 2023-11-02 01:48:34 +01:00
ekzyis
7a83813c85 Upload images to S3 on selection 2023-11-02 01:48:34 +01:00
ekzyis
de7b8547ec Open file explorer to select image 2023-11-02 01:48:34 +01:00
ekzyis
955e5cfc88 Add icon to add images 2023-11-02 01:48:34 +01:00
VaibhavWakde52
e24e2a6b20
Update README.md (#593) 2023-11-01 14:54:41 -05:00
keyan
8bc3f5b384 Revert "halloween animation"
This reverts commit e9390262958040638078dafa302b3af781c6cd9f.
2023-11-01 11:57:55 -05:00
keyan
8881b19e45 Revert "protect zaps from webgl occasionally being unavailable"
This reverts commit b5828cdf94662ad29ae121a100e448327180a302.
2023-11-01 11:57:17 -05:00
keyan
b5bf3299f2 add /bitcoin.pdf easter egg 2023-10-31 11:02:13 -05:00
keyan
b5828cdf94 protect zaps from webgl occasionally being unavailable 2023-10-31 09:48:39 -05:00
keyan
e939026295 halloween animation 2023-10-29 16:50:03 -05:00
keyan
d43155243a give self subscription proper migration name 2023-10-28 18:48:07 -05:00
keyan
e3b81b7746 add top meme and fact to newsletter script 2023-10-28 18:28:13 -05:00
keyan
d91d69bd42 fix deployment commit 2023-10-26 16:12:54 -05:00
keyan
30d8c92fe2 fix accidental reply hit on mobile 2023-10-26 15:49:28 -05:00
keyan
835554b3cd small adjustments to secondary form text 2023-10-26 15:12:21 -05:00
keyan
7589295e8c fix url UX exposing state 2023-10-26 14:36:20 -05:00
keyan
43a54d407e keep as much context as possible when navigating deeper in comment threads 2023-10-26 14:24:49 -05:00
keyan
39625f7e08 improve markdown tab spacing 2023-10-26 13:28:12 -05:00
keyan
43d3ba1807 better search layout spacing 2023-10-26 13:01:01 -05:00
keyan
e8aaf1956e fix spacing on mixed items 2023-10-26 12:52:06 -05:00
keyan
4d98110282 restore ctrl+click on item title clicking 2023-10-26 12:30:13 -05:00
keyan
02b98582b8 add spacing to comment reply button 2023-10-26 12:17:43 -05:00
keyan
41cb6ac3d8 continue notification polling even if found 2023-10-26 11:53:27 -05:00
ekzyis
cbcf80e1ba
Fix QR code overflow on mobile (#589)
Co-authored-by: ekzyis <ek@stacker.news>
2023-10-26 10:36:46 -05:00
SatsAllDay
843774183b
Wallet history timestamps (#585)
* Show when wallet history facts occurred

make use of the `timeSince` function that we use in item components
to show a relative time that a wallet history event occurred.

you an also hover over the relative time to see the ISO timestamp.

* Add `suppressHydrationWarning` to avoid hydration issues in dev mode

* Display date/time instead of relative time since
2023-10-25 13:06:15 -05:00
ekzyis
64cf40a04c
Additionally compare user ids during bookmark privacy check (#587)
Co-authored-by: ekzyis <ek@stacker.news>
2023-10-25 13:04:13 -05:00
keyan
a0216788b4 remove debug log message 2023-10-24 14:10:54 -05:00
ekzyis
eeaf2d5cf6
Fix FORWARDEDTIP change lost in serviceworker (#582)
Co-authored-by: ekzyis <ek@stacker.news>
2023-10-24 11:27:59 -05:00
keyan
0c9131f698 only show invoice data on full page 2023-10-23 19:58:33 -05:00
keyan
a85af82460 make rewards query less aggressive 2023-10-23 19:46:51 -05:00
keyan
d2697477a0 saner lastSeenAt checking 2023-10-23 18:19:36 -05:00
keyan
ef884181e8 remove debug loggin for rehype plugin 2023-10-23 18:16:06 -05:00
keyan
53a8af8d20 improve delete bot ux 2023-10-23 17:55:48 -05:00
keyan
302f3459a1 fix markdown inline code and headings 2023-10-23 17:14:37 -05:00