forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

8074 Commits (dedbc0296898d27c1c3961d5a3ab428d3bf13299)

Author SHA1 Message Date
Aevann1 851eff0f18 sdf 2022-05-28 19:50:48 +02:00
Aevann1 0352f6a626 sfd 2022-05-28 19:35:21 +02:00
gooseman 539f9185c8 Update assetcache.html 2022-05-27 22:51:29 -07:00
Snakes 05fc950004 Add support for distinguishing ghosted. 2022-05-28 00:47:33 -04:00
Aevann1 b023669b3e sfd 2022-05-28 03:53:14 +02:00
Aevann1 3f6cedc606 sfd 2022-05-27 22:31:46 +02:00
Aevann1 8f9ff42050 sfd 2022-05-27 22:26:38 +02:00
Aevann1 20bce86d33 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-27 22:03:25 +02:00
Aevann1 ead4c791a8 sdf 2022-05-27 22:03:23 +02:00
HappyDOGE 9c8c08ecb5 update bootstrap (#287) 2022-05-27 21:40:01 +02:00
HappyDOGE 12b4ab4bec offline_enabled (#286)
* Added offline service worker (serves a static webpage when no internet connection is present)

* add offline_enabled parameter to manifest
2022-05-27 21:30:29 +02:00
HappyDOGE d6b4c3b166 Added offline service worker (serves a static webpage when no internet connection is present) (#285)
based
2022-05-27 21:23:01 +02:00
Aevann1 6b6e2e8253 sfd 2022-05-27 20:28:54 +02:00
Aevann1 9c9ffdfd7a vcx 2022-05-27 19:05:07 +02:00
Aevann1 e659394744 sfd 2022-05-27 18:06:57 +02:00
Aevann1 bb85df4d67 fsd 2022-05-27 17:59:50 +02:00
Aevann1 25cb19b676 revert 2022-05-27 17:23:06 +02:00
Snakes af77ec515d Templates: create assetcache template.
For too long, we've Replace-All'd to increment site asset version
numbers. This is a task that has an obvious solution using the
templating engine. As such, we now have templates/util/assetcache.html
which contains a dict of version numbers and a macro to generate the
versioned name of an asset.

Going forward, it is recommended that all future replace-all uses
are used as opportunities to switch to the macro. Do remember to
import the macro in all top-level templates, if not already present.
Recommended form: {%- from 'util/assetcache.html' import asset -%}
Then add a key to CACHE_VER in util/assetcache.html.
Then replace the asset path in templates eg: {{asset('css/main.css')}}

For all future versions of those assets, one can simply increment
the value in util/assetcache.html instead. This will greatly reduce
git spam touching unrelated files and generally be clearer and easier.
2022-05-26 22:47:32 -04:00
Aevann1 27c3d89b5f sfd 2022-05-27 01:12:43 +02:00
Aevann1 66b3efab36 award refactor 2022-05-27 01:08:23 +02:00
Aevann1 8eee22565d fds 2022-05-27 00:39:11 +02:00
Aevann1 22aacf86ec vf 2022-05-27 00:23:16 +02:00
Aevann1 d4f7f5497b fds 2022-05-26 22:49:36 +02:00
Aevann1 630996faee gfd 2022-05-26 22:31:08 +02:00
Aevann1 2595706b49 fsd 2022-05-26 20:36:37 +02:00
Aevann1 e4893c617e fd 2022-05-26 02:54:05 +02:00
Aevann1 163267c88c Revert "Add Y'all Seein' Eye award."
This reverts commit a0f441a67d.
2022-05-26 02:51:42 +02:00
Snakes a0f441a67d Add Y'all Seein' Eye award.
Adds award to enable viewing profile visitors for non-mops and
non-patrons. This commit should encompass all frontend, backend, and
database changes necessary. Perhaps usable as a model for other
user upgrade flag awards.
2022-05-25 19:44:34 -04:00
Aevann1 6859653e1a sfd 2022-05-25 23:57:38 +02:00
Aevann1 2c67a34047 fsd 2022-05-25 23:55:07 +02:00
Aevann1 27a94797cf fsd 2022-05-25 23:43:30 +02:00
Aevann1 7ff300d0c6 fds 2022-05-25 23:42:50 +02:00
Aevann1 8d1c9d710d fsd 2022-05-25 23:25:23 +02:00
Aevann1 0f9a207440 fds 2022-05-25 23:13:04 +02:00
Aevann1 50b995d3a0 fds 2022-05-25 22:16:26 +02:00
Aevann1 3fbc423336 dfs 2022-05-25 21:48:07 +02:00
Aevann1 94151bf2d6 fsd 2022-05-25 21:45:03 +02:00
Aevann1 c8efa3ade1 sfd 2022-05-25 21:31:39 +02:00
Aevann1 ab7c5dd6bf fsd 2022-05-25 21:16:46 +02:00
Aevann1 bbf6e94584 gfd 2022-05-25 21:10:20 +02:00
Aevann1 d60065d7c4 sfd 2022-05-25 21:04:58 +02:00
Aevann1 85e4a33a7e fsd 2022-05-25 21:03:48 +02:00
Aevann1 49c53cb2ff fds 2022-05-25 20:59:24 +02:00
Aevann1 3706d3d22c sdf 2022-05-25 20:36:09 +02:00
Aevann1 3c691595e5 fds 2022-05-25 19:11:09 +02:00
Aevann1 162bf9dad7 no more g.timestamp y'all couldn't behave 2022-05-25 17:42:04 +02:00
Snakes da27b16c39 Disable fartmode on non-rDrama sites. 2022-05-25 07:24:34 -04:00
Snakes 42d810a5e7 Leaderboard: fix user join for ea48c46b0f.
After ea48c46b0f adds the leaderboard table for most blocked user,
it appeared that the user profile links did not appear correctly.
As such, it was necessary to join on the appropriate information.
This has been (mostly) resolved, excluding the removal of profile
picture because profile_url has logic in Python.

If someone knows SQLAlchemy better than I do, please redo this and
add the profile pictures back into the template. However, I got tired
of fighting with the ORM when I already knew the damn query.
2022-05-25 06:09:13 -04:00
Snakes ea48c46b0f Leaderboard: add 'Most Blocked' hiscores. 2022-05-25 05:24:31 -04:00
Snakes 3a2c16a696 Userpage: fix display-none on own profile in 8a400a209b.
With the changes in 8a400a209b, a bug was accidentally introduced
which resulted in one's own profile being wrapped in a `display: none;`
block due to a template conditional which caused the mobile
<div id="profile--actionbtns"> to not be closed when v.id != u.id
(cf. userpage.html circa L489).

Because the current conditional structure makes it hard to add an
analogous profile--actionbtns div to mobile, it has been removed.
2022-05-25 03:55:09 -04:00
Snakes 74f8859aa2 Leaderboard: add fixed back-to-top button. 2022-05-25 03:26:33 -04:00
Snakes 8a400a209b Userpage: add id attributes to profile markup. 2022-05-25 03:18:42 -04:00
Snakes f4a5230f21 Leaderboard: add linked table of contents. 2022-05-25 01:24:59 -04:00
Snakes d8fa336d78 User counter: replace globe with marseylowpoly.
By direct request of Carp. Also shrunk text slightly to match.
In light of the animated icon, it's plenty visually obvious.
Also, the smaller text reduces instances of unsightly text wrapping.
2022-05-24 23:54:53 -04:00
Snakes bb40bc1c53 User counter: move to sidebar, add flavor.
After much debate, the user counter will remain in the top banner for
all non-rDrama sites using the codebase, while on rDrama the journoid
banner will remain there and the counter has been moved back to the
sidebar. This partially reverts some recent commits.

In addition to the sidebar move, the rDrama user counter now has
random flavor text, much as reddit sidebars do, though ours is
cooler because it can randomly select from a list.
2022-05-24 23:37:25 -04:00
Aevann1 061c4936ce fds 2022-05-25 04:58:26 +02:00
Aevann1 0b1c86bbe7 fd 2022-05-25 04:29:39 +02:00
Aevann1 7310c9a1a4 sdf 2022-05-25 03:25:06 +02:00
Aevann1 538a2638ae sfd 2022-05-25 03:23:54 +02:00
Aevann1 b1d57227ff sfd 2022-05-25 03:18:36 +02:00
Aevann1 22ea228dc6 sdf 2022-05-25 03:15:38 +02:00
Aevann1 4e4f667387 journoid 2022-05-25 03:14:18 +02:00
Aevann1 1b66095747 dfs 2022-05-25 01:47:28 +02:00
Aevann1 454d5173eb sfd 2022-05-25 01:42:55 +02:00
Aevann1 d9145c76d4 sdf 2022-05-25 01:40:50 +02:00
Aevann1 4f659c093a Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-25 01:26:53 +02:00
Aevann1 b2de1dca52 upload mp3 2022-05-25 01:26:50 +02:00
Snakes 8c3b6cece1 Add 8-ball answers, like fortune & factcheck. 2022-05-24 19:08:41 -04:00
gooseman 7ad1030725 Update sidebar_WPD.html 2022-05-24 17:28:16 -04:00
gooseman 9db419fcdf Update sidebar_PCM.html 2022-05-24 17:27:59 -04:00
gooseman eab986be0b Update sidebar_Cringetopia.html 2022-05-24 17:27:47 -04:00
gooseman 7295f414d4 Update sidebar_rDrama.html 2022-05-24 17:27:12 -04:00
Aevann1 e119a8cb48 fds 2022-05-24 22:48:23 +02:00
Aevann1 9af50ae9b3 jannies can now block ppl 2022-05-24 22:43:49 +02:00
Aevann1 ff68e0eb7d sdf 2022-05-24 22:20:00 +02:00
Aevann1 2b9dcb0c6a users here now 2022-05-24 22:19:18 +02:00
Snakes fdd5704348 Cache bust awards.css for confetti change. 2022-05-24 15:09:42 -04:00
Aevann1 879910d4ec fds 2022-05-24 18:57:40 +02:00
Aevann1 63914d974b Revert "Respect newtab setting for header menu."
This reverts commit 4847000f67.
2022-05-24 18:55:24 +02:00
Aevann1 efd122ae86 sfd 2022-05-24 18:53:39 +02:00
Aevann1 02e98b46b0 is_audio 2022-05-24 18:28:12 +02:00
Aevann1 bbd851210e fds 2022-05-24 17:32:49 +02:00
Aevann1 7670e3765e fds 2022-05-24 00:22:16 +02:00
Aevann1 484bd02a8e dfs 2022-05-23 22:30:52 +02:00
Aevann1 d1e64e5450 dfs 2022-05-23 22:09:40 +02:00
Aevann1 14f4c69785 fds 2022-05-23 19:57:08 +02:00
Aevann1 77d370f2a6 fsd 2022-05-23 19:38:36 +02:00
Snakes 727f58f159 Fix confetti appearing in awardModal.
The confetti button in the awardModal had a conflicting ID to the
newly-reimplemented confetti award. This resulted in an amusing bug
where the awardModal was filled with confetti. Conflict has been
resolved by renaming the confetti overlay.

This is what I deserve for writing code at 3AM.
2022-05-23 11:51:10 -04:00
Aevann1 80fc79cbe3 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-23 17:24:25 +02:00
Aevann1 d211af8cea fds 2022-05-23 17:24:23 +02:00
Snakes 517e5ec3b3 Re-implement confetti award.
To replace the implementation of the confetti award, we now use an
animated WebP tiled as a background image on a fixed overlay. This
should alleviate the previous performance concerns (no runtime
calculation of confetti mechanics & rendering) and maintainable
concerns.
2022-05-23 02:57:43 -04:00
Snakes 4847000f67 Respect newtab setting for header menu.
Fixes https://rdrama.net/post/18459/-/1969386
The appropriate internal links--viz. profile, settings, changelogs,
bug reporting, discord, archives, and contact--in the header menu
respect the User.newtab setting to open internal links in new tabs.
2022-05-23 02:06:54 -04:00
Snakes cc75375c82 Un-deploy Birthgay event.
Removes temporary changes for the Birthgay 2022 event, ending
approximately at 2022-05-23 0600Z. Changes:
 - Double XP disabled.
 - Lootboxes disabled.
 - Three event awards given real descriptions and colors.
 - Partyhats: restored to cakeday-only condition and tooltip.
 - Header UI: balloons removed, text visibility outline removed,
   journoid banner reverted, marseyjam as header icon.
 - Birthgay banners: removed from template, moved to new storage dir.

Confetti, though remaining as a permanent award, has been temporarily
removed pending a less performance-intensive implementation and one
that doesn't require maintaining a third-party package in the codebase.
2022-05-23 01:48:25 -04:00
Aevann1 3cec77b4c5 fds 2022-05-23 01:02:06 +02:00
Aevann1 e5a980d8bd ffds 2022-05-23 00:25:54 +02:00
Aevann1 f0dec0d06d Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-23 00:21:13 +02:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02:00
Snakes 74a66876ef Ricardo: replace gifs with webp anims. 2022-05-22 17:50:04 -04:00
Aevann1 9796d359c4 sdf 2022-05-22 23:26:29 +02:00
Aevann1 f67a91433c fds 2022-05-22 23:25:08 +02:00
Aevann1 ef2c09d9b6 sdf 2022-05-22 23:24:32 +02:00
Aevann1 027fac7509 sfd 2022-05-22 23:24:06 +02:00
Aevann1 ffad4f1c80 fds 2022-05-22 23:23:10 +02:00
DrTransmisia 4b6a811e21 Lenewlink (#282)
* allowing the user to click on profile ANCHOR with special keys

* le epic version bump for le cloudfare chaching, has arrived
2022-05-22 19:31:27 +02:00
Aevann1 f0d3f35a29 fsd 2022-05-22 11:05:23 +02:00
Aevann1 b9316c0073 fsd 2022-05-21 15:19:02 +02:00
Aevann1 cad9952f2b Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-21 14:36:24 +02:00
Aevann1 20cc20d806 fsd 2022-05-21 14:36:22 +02:00
Snakes 6fbaf2f15f Partially revert: cb1bb4e43b, 2737a6ca47.
cb1bb4e43b40: Server cleaned out schema.sql for some reason and
it was autocommitted by the sneed cron. This is why the tests fail.

2737a6ca479b: Originally pulled from themotte/rDrama @ 309bf44f12ba.
In light of the fact this is breaking comment previews right now and
the actual XSS threat is unclear, given we sanitize serverside,
this is reverted until I find time to look at it.
2022-05-20 19:15:44 -04:00
Aevann1 2737a6ca47 sfd 2022-05-20 23:41:08 +02:00
Aevann1 aed84df4ad fsd 2022-05-20 20:45:12 +02:00
Aevann1 301f134309 fds 2022-05-20 18:02:27 +02:00
Aevann1 a83a72ca95 fsd 2022-05-20 16:51:14 +02:00
Aevann1 f4ac063354 sfd 2022-05-20 16:48:13 +02:00
Aevann1 4a6545ef5d dfsfds 2022-05-20 16:39:46 +02:00
Aevann1 40dce26a65 Merge branch 'birthgay-staging' of https://github.com/Aevann1/Drama into birthgay-staging 2022-05-20 16:17:11 +02:00
Aevann1 eead5570e5 fsd 2022-05-20 16:17:09 +02:00
Snakes 16e3d3b3e9 Disable tilts on distinguished posts. 2022-05-19 22:27:51 -04:00
Snakes 97bfdc5d3e Improve readability on header birthgay bg. 2022-05-19 19:15:49 -04:00
Snakes ee8c54a8d4 Replace journoid w b-day message, h/t @nekobbbbbbit 2022-05-19 18:48:55 -04:00
Aevann1 f4d5998e80 fsd 2022-05-20 00:38:03 +02:00
Aevann1 c093d8cbb1 fsd 2022-05-20 00:33:53 +02:00
Aevann1 0eb39b987c 2022-05-20 00:24:34 +02:00
Aevann1 85bf0ab866 sfd 2022-05-20 00:10:02 +02:00
Snakes c789f6923e Merge remote-tracking branch 'upstream/frost' into birthgay-staging 2022-05-19 17:59:35 -04:00
Snakes 039991dd43 Add birthgay event banner assets, template change. 2022-05-19 17:26:22 -04:00
Snakes b09cad1a84 Swap header icon to :marseyparty:. 2022-05-19 17:16:07 -04:00
Snakes ad328ff2d8 Award modal: flairlock note length limit in UI.
The award modal note field had a maxLength of 200 characters.
This was retained when repurposing the field for the new flair to be
applied by a flairlock award. However, flairs have a maxLength of 100
characters. award_modal.js now makes this clearer in the UI by
changing the maxLength of note when a flairlock award is picked.
2022-05-19 13:56:04 -04:00
Snakes 0608e0ce9d Media folder: create, add birthgay, move crab. 2022-05-19 13:09:19 -04:00
Aevann1 f6cf02b210 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-19 09:44:46 +02:00
Aevann1 371c7375c8 fds 2022-05-19 09:44:43 +02:00
Snakes 5500bd4e03 Polls formatting help, minor revision. 2022-05-18 18:04:17 -04:00
Snakes 9ef2d95874 Expand formatting help on polls. 2022-05-18 17:41:01 -04:00
Aevann1 3354363261 dfs 2022-05-18 21:04:06 +02:00
Aevann1 1874c3ffbc Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-18 20:45:05 +02:00
Aevann1 15f0b963c7 fc 2022-05-18 20:45:04 +02:00
Snakes 38680fd38c Fix user popovers failing from early bs_trigger.
Very strange bug, and I hope this fixes it. User popovers, e.g. on
comments pages when names are clicked, spontaneously stopped working
on my local instance. This parallels occasional reports from others
that their popovers stop working for seemingly no reason.

The primary symptom appeared to be in comments+submission_listing.js
@ popclick(...), which became unable to find any `.popover` elements
in the document, resulting in a console error. Running `bs_trigger(
document)` manually in console after page load always fixed this.
As such, I am assuming this is (hopefully) a timing bug from the
bs_trigger call in header.js running before document ready. The call
now runs on a standard document ready callback boilerplate.
May God have mercy on our souls if this doesn't fix it.
I discovered that running `bs_trigger(document)`
2022-05-18 01:46:14 -04:00
Snakes 8d6e542eaf Fix shop MBux button wrapping to two lines. 2022-05-17 22:07:07 -04:00
Nekobit 86e90efb90 bump (#272)
* q

* Update comments.html
2022-05-17 18:23:44 -04:00
Snakes 1434270975 Cache busting comments_v.js (again). 2022-05-17 17:20:37 -04:00
Aevann1 e7e37cd657 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-17 23:09:39 +02:00
Aevann1 0b28758e16 stole testing from mottechads 2022-05-17 23:09:36 +02:00
Snakes 9677f505a4 Cache busting comments_v.js. 2022-05-17 17:01:11 -04:00
DrTransmisia d3c404a5f5 CTRL + ENTER TO POST LE NEW COMMENT (#266)
* le shortcut handlers

* le white line as arrived

* Update default.html

Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-05-17 22:44:17 +02:00
Aevann1 3491c9187d pls review 2022-05-17 21:58:41 +02:00
Aevann1 d560caae8d sfd 2022-05-16 22:19:29 +02:00
Snakes b0957832e8 Revert "Update sidebar: Carp's journo rule."
This reverts commit 2a3c70feee.
2022-05-16 12:38:13 -04:00
Snakes b6339ca95f Add exact timestamps to mod log.
Modlog only had ModAction.age_string visible. However, we sometimes
need to know the exact time an action was taken.
Adds `created_string` to ModAction, and exposes that to log.html.
2022-05-16 11:33:26 -04:00
Snakes 2a3c70feee Update sidebar: Carp's journo rule. 2022-05-15 14:57:03 -04:00
Aevann1 9df87dc5c6 sf 2022-05-14 15:18:33 +02:00
Aevann1 9dbd9f42e0 fsd 2022-05-14 15:17:57 +02:00
Aevann1 caa81452f4 sf 2022-05-13 14:38:14 +02:00
Aevann1 f67860c566 sf 2022-05-13 13:03:44 +02:00
Aevann1 3ace8a2606 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-11 19:50:30 +02:00
Aevann1 5efb306822 fds 2022-05-11 19:50:28 +02:00
DrTransmisia 04aefc2462 worst asymptotic behavior (#259)
* ditched the log search in favor of the polynomial search otherwise poor carp can't search for xis boyfriend marseysamhyde querying "hyde" and instead of properly tag it ["sam", "hyde"] I had to ditch the search alg made in the image of G-d

* le new line

* anton-d on all dramaverse
2022-05-11 19:49:27 +02:00
geese-suck 70c61904d9 multi ricardo action 2022-05-10 13:19:55 -04:00
Aevann1 fac797006e sf 2022-05-10 14:14:09 +02:00
Aevann1 09f732d009 sf 2022-05-10 13:40:23 +02:00
Aevann1 3f2eb808b8 fd 2022-05-10 10:07:19 +02:00
Aevann1 db99dd8255 sfd 2022-05-10 09:32:11 +02:00
Aevann1 9bd8fcbd1c sf 2022-05-10 09:20:49 +02:00
Aevann1 b7a2527be9 dg 2022-05-10 06:09:14 +02:00
Aevann1 5ae124d1ca sfd 2022-05-10 04:14:03 +02:00
Aevann1 82a029ef63 sfd 2022-05-10 03:20:37 +02:00
Aevann1 eb803788e7 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-10 03:12:13 +02:00
Aevann1 5d08b9b96e sdf 2022-05-10 03:12:10 +02:00
DrTransmisia 99eeb3ee4b Bussysussy (#256)
* improved static emojis descriptions and file readability

* perf improv. 2

* some minor tweaks

* final tweaks to js and mobile css

* very final
2022-05-10 02:58:57 +02:00
Aevann1 421edf92f4 vxc 2022-05-09 16:44:11 +02:00
Aevann1 8fd2002013 dgf 2022-05-09 16:40:27 +02:00
Aevann1 45da8f0f35 sdf 2022-05-09 14:15:23 +02:00
Aevann1 c0461f4554 fdsdf 2022-05-09 14:13:38 +02:00
Aevann1 5fddfae64c sf 2022-05-09 11:08:26 +02:00
Aevann1 edb39d76f8 sfd 2022-05-09 04:15:32 +02:00
Aevann1 cbb76fff0c dgf 2022-05-09 04:15:15 +02:00
Aevann1 e92aebc7d8 sf 2022-05-09 03:42:03 +02:00
Aevann1 f1458c091f sfd 2022-05-09 03:37:50 +02:00
Aevann1 cf91c32c38 sfd 2022-05-09 03:08:49 +02:00
geese 507d4929f7 brasil #1 2022-05-08 13:37:30 -04:00
Aevann1 5f2a20028e sfd 2022-05-08 11:12:20 +02:00
Aevann1 fffdc9e88b sdf 2022-05-08 11:10:39 +02:00
Aevann1 557754d0c3 fsd 2022-05-08 07:56:57 +02:00
Aevann1 666870e0a3 fsd 2022-05-08 07:14:24 +02:00
Aevann1 f2e66fc280 gd 2022-05-08 05:58:02 +02:00
Aevann1 bf683cf5a2 vxc 2022-05-07 11:23:13 +02:00
Aevann1 04dac94127 fsd 2022-05-07 11:05:33 +02:00
Aevann1 8535ec8958 hk 2022-05-07 10:51:07 +02:00
Aevann1 b5abdccff8 sdf 2022-05-07 09:13:52 +02:00
Aevann1 036e61110a sfd 2022-05-07 09:12:59 +02:00
Aevann1 6d95bf04b8 fsd 2022-05-07 09:10:38 +02:00
Aevann1 c06a3b9771 fds 2022-05-07 09:10:18 +02:00
Aevann1 8a5fd22034 sfd 2022-05-07 09:09:46 +02:00
Aevann1 1b86af8def fg 2022-05-07 07:28:51 +02:00
Aevann1 f2039d7713 sfd 2022-05-07 06:13:19 +02:00
Aevann1 ca61569b44 nv 2022-05-06 06:55:15 +02:00
TLSM 0447c9c09e Fix remaining emoji-btn clickboxes. (#247)
In line with 1c363303f0, repeat a similar fix for the four remaining
emoji-btns which had wrong clickboxes.
2022-05-06 05:38:20 +02:00
Aevann1 b84dd88e51 sfd 2022-05-06 00:58:10 +02:00
Aevann1 c5f5342373 sdf 2022-05-06 00:55:34 +02:00
Aevann1 bb43be278b dg 2022-05-05 23:49:27 +02:00
Aevann1 bb515cb0e8 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-05 23:12:11 +02:00
Aevann1 79f3412aae Merge branch 'bussy_refactor' of https://github.com/DrTransmisia/rDrama into frost 2022-05-05 23:12:07 +02:00
Doctor Steven Transmisia 640daf9560 html new line 2022-05-05 16:28:57 +02:00
Doctor Steven Transmisia e526a4fd1c re-factoring emoji system\n\nnow should be less CPU intesive although most of the load seems to come from the img loading itself and it is not address in this commit 2022-05-05 15:47:47 +02:00
TLSM a0cfc7bf1c Add admin status git revision. (#244)
Adds a line in admin_home which displays the currently active git
revision. Current methodology is via manually parsing files in .git.
Consider revising if the application ever has access to `git` shell,
which would obviate some minor security concerns around directory
traversal attacks.
2022-05-05 10:46:20 +02:00
Nekobit 1c363303f0 g (#242) 2022-05-05 04:15:23 +02:00
geese 02928305ed aaa 2022-05-04 21:29:59 -04:00
Aevann1 2008bc76c1 cakedays 2022-05-05 01:31:11 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
TLSM 8fb6067701 Fix viewmore on removed post. (#241) 2022-05-05 01:07:45 +02:00
Aevann1 7c88c2e7e5 dgf 2022-05-04 23:42:34 +02:00
Aevann1 c96992f67b fsd 2022-05-04 23:39:11 +02:00
Aevann1 46e391b5a7 fsd 2022-05-04 23:32:30 +02:00
Aevann1 e70ddb99c5 gf 2022-05-04 02:40:08 +02:00
Aevann1 a35ef11d77 fds 2022-05-03 21:19:00 +02:00
Aevann1 095e5cb0af sanitize 2022-05-03 21:07:15 +02:00
Aevann1 18a4e7b0ca fsd 2022-05-03 07:58:10 +02:00
Aevann1 5e2da5673c fsd 2022-05-03 06:28:42 +02:00
Aevann1 7b834f2831 fd 2022-05-03 02:13:57 +02:00
Nekobit 94edc2ce52 Fix emojis on freakish browsers & fix buttons (#240)
thx u nekobit
2022-05-02 19:54:10 -04:00
Aevann1 df9585017c dsa 2022-05-02 23:30:03 +02:00
TLSM 8eb86b965c Partially revert self-upvote UI bug fix. (#239)
Turns out the snippet in templates/comments.html was necessary to
get proper behavior in notifications.

Might come back to debug this later, but people use notifications more
than they deal with edge case self-upvotes, so reverting for now.

The changes to prevent coin fuckery with self-upvoting appear to work
correctly in the wild, so leaving those in place.
2022-05-02 21:42:28 +02:00
Aevann1 18509b653a dfg 2022-05-02 21:39:18 +02:00
carpathianflorist e051ac8b8b Update journoid_banner.html 2022-05-02 15:13:10 -04:00
Aevann1 cd78de4d0b sdf 2022-05-02 21:11:03 +02:00
Aevann1 93ab0a1365 dfg 2022-05-02 21:10:49 +02:00
Aevann1 8b24faf9fd sdf 2022-05-02 20:56:10 +02:00
Aevann1 dbe0bf076e tre 2022-05-02 20:50:43 +02:00
TLSM 63d344c2d0 Add badge quantity and rarity to /badges. (#238)
Implements feature request to know how many of each badge exists and
to have a 'rarity', a la Steam or PSN badges, relative to number of
non-lurker users.

Because Postgres `COUNT()`s are notoriously costly, /badges has been
memoized for 1hr to avoid a DOS target.
2022-05-02 20:14:06 +02:00
TLSM 020fe6033c Update journoid banner entries. (#237)
Fix Business Insider URL: was duplicate of LoTT Mashable link.
Add Glenn Beck Program mention.
2022-05-02 20:13:07 +02:00
TLSM d1e2926ca3 Fix comment self-upvote removal UI bug. (#236)
Fixes minor UI bug when removing self-upvote on a comment. Previous
behavior, starting from a new comment:
    - Initial state: score 1 from self-upvote, upvote button shows
      highlighted as `color: var(--primary)`.
    - Click on upvote button to remove self-upvote → button
      unhighlights, score displays as 0.
    - [reload page]
    - Score displays as 0, but button is highlighted.
    - Click on upvote button → button unhighlights, score displays
      as -1. [If you reload the page now, state is score 0 &
      highlighted; no change in serverside votes.]
    - Click on upvote again → button highlights, score displays as 0.
    - [reload page]
    - Score displays as 1, button is highlighted.
Direct cause is `templates/comments.html @ L115-117`. I checked
`api_comment`, though, and it adds a vote on new comments, and that
state change propagates to the template's parameters before it renders,
so I believe the only time this triggers is specifically when a user
has removed their self-upvote. Bug is fixed when testing with L115-117
removed. Is there some other edge case it was meant to solve?

Secondary bugfix: Removing a self-upvote _costs_ you a coin & a
truescore point. I think this is one of the few ways to get negative
dramacoin. I chose to fix it by having self-votes and self-unvotes not
change coins/truecoins. The alternative of having new comments & posts
give the user +1 coin/truecoin would modify site behavior, and you'd
retroactively owe some powerusers thousands of DC & truescore.
2022-05-02 20:12:28 +02:00
Aevann1 53ac9ab777 dfs 2022-05-02 03:06:20 +02:00
Aevann1 6b3987299c sdf 2022-05-02 02:41:00 +02:00
Aevann1 999c16e439 sfd 2022-05-02 02:04:25 +02:00
Aevann1 14ffac7db0 fsd 2022-05-02 02:02:31 +02:00
Aevann1 f3983ab491 sdf 2022-05-02 02:02:19 +02:00
Aevann1 41f08325fa sdf 2022-05-02 01:58:06 +02:00
Aevann1 6619c2f4b2 dfg 2022-05-02 01:55:55 +02:00
Aevann1 ecf20686bb jg 2022-05-02 01:51:47 +02:00
Aevann1 195ea385e3 gfd 2022-05-02 00:56:19 +02:00
Aevann1 94e6eb1ef6 sdf 2022-05-02 00:28:51 +02:00
Aevann1 a4b0565b5a sfd 2022-05-01 23:48:53 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
Aevann1 394402c0c1 fsd 2022-05-01 02:53:24 +02:00
Aevann1 d08a6010c8 dfs 2022-04-29 21:19:54 +02:00
Aevann1 b0384c3647 sfd 2022-04-29 17:58:37 +02:00
Aevann1 e73fcbd56a sfd 2022-04-29 17:17:14 +02:00
Aevann1 01e55c142a fsd 2022-04-29 16:28:13 +02:00
Aevann1 ebba5fd9b3 gdf 2022-04-29 15:36:33 +02:00
Aevann1 0cfb1be47f Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-04-29 00:03:34 +02:00
Aevann1 ceb03b25bc gfd 2022-04-29 00:03:31 +02:00