Commit Graph

125 Commits

Author SHA1 Message Date
Robin Malley 4c65fc3692 Allow logged in users to "hit" their own paste
Increments the view counter in an edge case where the logged in
user is viewing their own paste.
2020-10-12 00:15:38 +00:00
Robin Malley 8825e000c2 Marked tags complete on roadmap 2020-10-12 00:01:03 +00:00
Robin Malley 5e922719bd Relabed views to hits
Relabled the views so it's more consistent with other websites.
"Views" seems to imply we track unique views, while "hits" confers
that we only track requests.
2020-10-11 23:56:10 +00:00
Robin Malley 81a116d3d5 Added buttons
Added buttons for new paste, login, and register.
2020-10-11 23:55:46 +00:00
Robin Malley b1f7a6d09f Fixed search bug
Fixed a bug where the first search would be repeated for all
following searches (stmt:reset() strikes agains).
2020-10-11 23:55:02 +00:00
Robin Malley e6b1b7a8a1 Various updates
+ Added tags to stories
+ Added a view counter to stories
+ Added a very basic search by tag function
~ Modified imageboard parser so that blank lines are preserved
~ Raised the minimum cache time from 2 seconds to 20 seconds
2020-10-10 23:28:39 +00:00
Robin Malley 55c56969ea Added preview
Added a preview button the the paste page that allows users to
preview their paste before submitting.

Various additions to the imageboard parser to make it more robust
and accept more inputs.
2020-08-24 21:38:24 +00:00
Robin Malley 496066e3aa Hotfix
Fix comments showing up on the wrong stories.
2020-08-24 17:46:11 +00:00
Robin Malley bcb48bae3d Add more information to errors
Add more information when cacheing breaks, and when people requests
stories that don't exist (probably robots)
2020-08-24 17:20:33 +00:00
Robin Malley e061d1d8a3 Modified style
Greentexts now appear correctly, without "reddit spaceing"
2020-08-18 22:40:09 +00:00
Robin Malley 3233af6374 Enforce lowercase usernames
Previously, there was text on the claim page claiming usernames
needed to be all lower case, but it wasn't enforced, leading some
people to create usernames that cannot function as subdomains.
2020-08-13 19:29:18 +00:00
Robin Malley bce0788b62 Add comments
Add comments for each paste,
Also add a "Download TXT" button.
2020-08-13 17:59:33 +00:00
Robin Malley 0ba9e22f70 Make the anonymous account id = -1
This change also simplifies the site index query.
2020-05-19 20:14:22 -04:00
Robin Malley 03d4779129 Enable reader mode
Various fixes to enable reader mode on most platforms. I tested on
firefox, google chrome, and microsoft edge, I don't have an iphone, so
let me know if it's still broken.
2020-05-19 20:13:30 -04:00
Robin Malley 2e735282ec Fix cacheing
Fix some cache invalidation bugs that would cause the index and author
pages to not update correctly when new pastes were made.
2020-05-19 20:11:11 -04:00
Robin Malley 910542ef76 Dont style links
Allow milligram to style links.
2020-05-19 20:08:11 -04:00
Robin Malley d2e2f41dfb Remove error from login page
A global variable might show up on the login page, remove it.
2020-05-19 17:12:44 -04:00
Robin Malley 226580f088 Minor bugfix
Create the raw_text table corretly
2020-05-19 14:06:10 -04:00
Robin Malley 2722b1e282 Allow uploaded files to have embedded nulls
Minor bugfix that correctly passes uploaded files to the lua runtime
when they have embedded nulls.
2020-05-19 14:04:39 -04:00
Robin Malley a5293ae7a6 minor bugfix 2020-05-18 10:41:27 -04:00
Robin Malley 37e1b0a6c0 Minor bugfix 2020-05-17 13:17:15 -04:00
Robin Malley 1863e14b34 Add a loggging utility
adds a function to the global namespace, log() as well as constants
from syslog(3) for logging messages.
2020-05-17 13:16:29 -04:00
Robin Malley 13883cccd7 Add gitignores
Set up the file structure automatically on clone with gitignores
2020-05-17 12:10:01 -04:00
Robin Malley 6c18829de6 Move sql files into their own directory
Moved all the of the sql out of the init file and into it's own
directory.
2020-05-17 12:05:00 -04:00
Linux User 48b4173a7a Inital commit 2020-05-15 19:10:20 -04:00