Drew DeVault
d42d7c335b
API: Initial riggings for basic sr.ht GQL support
2021-09-21 08:25:46 +02:00
Drew DeVault
d139f46b0f
API: Initial commit
2021-09-09 12:24:39 +02:00
Drew DeVault
9fdf68ce1f
.builds/alpine: upgrade to 3.14
2021-07-26 09:58:40 +02:00
Alexey Yerin
739a235c00
Only display filename if it's set
...
This prevents None from showing up in different places when pastes are
submitted through the API.
2021-05-29 09:58:31 -04:00
Drew DeVault
4c395a7618
Fix Flask 2.0.x incompatible blueprint name
2021-05-26 10:02:49 -04:00
Drew DeVault
49d556a568
.builds/alpine: upgrade to 3.13
2021-02-08 10:05:37 -05:00
Drew DeVault
8ace8342d7
Dark mode updates
2020-12-15 14:12:17 -05:00
Drew DeVault
b1229a1160
Update wording on dashboard page
...
To encourage users to feel like a part of sr.ht
2020-11-20 11:33:48 -05:00
наб
4fbee6b1eb
Allow paste slugs to break
...
Ref: ~sircmpwn/sr.ht#245
2020-09-10 10:04:42 -04:00
Drew DeVault
316a474e03
.builds/alpine.yml: increase specificity of sed
2020-09-01 17:22:54 -04:00
наб
7666466a74
Add search by filename/visibility/sha to /~u
...
Ref: ~sircmpwn/paste.sr.ht#5
2020-08-25 13:03:34 -04:00
gildarts
bc9d593dd6
add database stamp for core.sr.ht
2020-08-11 10:46:47 -04:00
ARaspiK
dc906f0448
Replace misaka (hoedown) with mistletoe
...
It looked like using hoedown (through misaka), which is very
unmaintained, was leading to a lot of issues (see [0]). This replaces
misaka by mistletoe [1], without losing any functionality (I hope).
This affects the call to 'markdown()', removing the now-redundant
argument for the tag whitelist.
[0]: https://todo.sr.ht/~sircmpwn/sr.ht/20
[1]: https://github.com/miyuchina/mistletoe
2020-07-09 12:02:39 -04:00
Drew DeVault
9d29129d1c
Alpine: upgrade to 3.12
2020-06-15 12:05:25 -06:00
Drew DeVault
91b558dc61
pastesrht-initdb: import webhooks
2020-05-21 08:04:22 -04:00
Eli Schwartz
3a1d11322d
setup.py: use importlib.resources from python 3.7 to find core.sr.ht Makefile
...
importlib.resources will guarantee to find any importable module, and
check that the resource ('Makefile') can be found within it.
This lets us get rid of the current getsitepackages() hack and
environment variable fallback, which is both verbose and badly handles
some edge cases when installing modules, and instead use the recommended
way to find data files shipped with a python module.
2020-05-11 09:44:19 -04:00
Drew DeVault
e332d5886d
Add pastesrht-initdb
2020-03-26 09:09:11 -04:00
Drew DeVault
c495b1a098
Responsiveness improvements
2020-03-10 12:21:34 -04:00
George Craggs
7c88356043
Flush paste after validation
...
Flush paste after the validation has taken place to prevent 404's after
an invalid submission.
https://todo.sr.ht/~sircmpwn/paste.sr.ht/26
2020-01-28 10:36:40 -05:00
Drew DeVault
0056f80b09
Add <title> to paste pages
2020-01-12 14:21:16 -05:00
Trevor Slocum
11fa914778
Add new and move existing paste visibility indicators
2019-12-27 10:19:51 -07:00
Drew DeVault
bbe5837579
Update Makefile to use python 3.8
2019-12-20 17:11:18 -05:00
Drew DeVault
dacabde1da
alpine.yml: switch to alpine 3.11
2019-12-20 16:47:55 -05:00
Drew DeVault
8e6d982eb7
Improve config.example.ini
2019-12-19 11:08:44 -05:00
Benjamin Lowry
c795550915
Add user information to profile pages
...
Change user profile pages to display the user's bio, URL, location, etc.
as per other sr.ht services. (Previously, all user pages displayed the
"Welcome back, username!" text from the front page.)
Signed-off-by: Benjamin Lowry <ben@ben.gmbh>
2019-12-15 12:28:47 -05:00
Drew DeVault
0c2800a8e2
public.py: Fix None dereference
2019-12-01 10:26:49 -05:00
Denis Laxalde
14a1a4feb9
Add a build manifest for Debian packaging
2019-12-01 09:49:23 -05:00
Drew DeVault
d4e61fadf2
Updates for single-sign-on support
2019-11-30 10:38:38 -05:00
Benjamin Lowry
66c74e2390
Display number of files in "view paste" button
...
Changes the "view paste" button at the top of a paste to display
the number of files in the paste, e.g. "view paste (3 files)".
Addresses https://todo.sr.ht/~sircmpwn/paste.sr.ht/21
Signed-off-by: Benjamin Lowry <ben@ben.gmbh>
2019-11-14 22:59:06 -05:00
Benjamin Lowry
5ddb31fc77
Make unlisted pastes actually unlisted for logged-out users
...
As requested at https://todo.sr.ht/~sircmpwn/paste.sr.ht/23
Signed-off-by: Benjamin Lowry <ben@ben.gmbh>
2019-11-14 22:59:05 -05:00
Drew DeVault
cb497ad2f7
Fix typo in previous commit
2019-10-26 12:42:31 -04:00
Drew DeVault
c577a719be
Mix the paste ID into paste sha
2019-10-26 11:34:21 -04:00
Mykyta Holubakha
4f87e7e32e
Paste deletion webhook
2019-10-16 17:45:47 -04:00
Drew DeVault
acda128221
Flush database during paste creation
2019-10-16 11:09:57 -04:00
Mykyta Holubakha
9693888d67
Implemented paste deletion in API
2019-10-16 11:06:20 -04:00
Mykyta Holubakha
2999dc4a41
Extract paste file addition to a helper function
2019-10-16 11:06:20 -04:00
Mykyta Holubakha
6e00566309
Implement paste deletion
...
Added locks for blob creation/deletion
Fixes #13
2019-10-16 11:06:19 -04:00
Drew DeVault
7f296f5ce8
Fix logic in paste user page
2019-10-15 11:40:57 -04:00
Drew DeVault
f0d5f75325
Set a max width for images
2019-10-15 10:50:20 -04:00
Mykyta Holubakha
d6d143a623
/pastes: redirect to /~<current_user>
2019-10-14 10:40:34 -04:00
Mykyta Holubakha
c5e3f55964
Paste views: link to user index
2019-10-09 17:46:05 -04:00
Mykyta Holubakha
53db0054fd
Display visibility for pastes
2019-10-09 17:46:02 -04:00
Mykyta Holubakha
a3684566e1
Added an API endpoint to get a user's pastes
2019-10-09 17:45:59 -04:00
Drew DeVault
460da322cf
Add pagination to /pastes
2019-10-09 17:45:47 -04:00
Mykyta Holubakha
e35d7a4aff
Add /~<user> view
...
Fixes #17
2019-10-09 17:40:35 -04:00
Mykyta Holubakha
5be2b62f57
Set default paste visibility to unlisted on API
2019-10-09 17:40:12 -04:00
Drew DeVault
8e84488f43
Updates per core.sr.ht centered design
2019-08-24 13:58:42 +09:00
Drew DeVault
04f07fd072
Don't access contents before it's validated
2019-07-23 09:49:30 -04:00
Drew DeVault
0dbb524827
Update to Alpine 3.10
2019-06-30 15:16:54 -04:00
Drew DeVault
e678f639f1
.builds/alpine.yml: update repo path
2019-06-26 18:06:47 -04:00