Matt Baer
79a968f425
Fix login.tmpl rendering
...
This passes in the correct field named GitlabDisplayName.
5 years ago
Matt Baer
ac522ed600
Reuse mention regex
...
This makes the app less error-prone by avoiding a regexp.MustCompile()
call in the ActivityObject() method, saves CPU work, and reuses code.
5 years ago
Matt Baer
97aec9c158
Fix error / info logging around AP mentions
...
This fixes log formatting and makes verbiage consistent & concise.
5 years ago
Matt Baer
471a9e0602
Store AP handles consistently
...
This ensures handles are always stored without leading @ symbol.
5 years ago
Matt Baer
a9bed9fea9
Prevent nil pointer panic from ActivityObject() method
...
Previously, we might potentially return a nil activitystreams.Object,
which would crash the app. This fixes that.
5 years ago
Matt Baer
f4c106beaf
Fix text contrast ratio in blockquote
...
This darkens the text slightly to get a contrast ratio over 4.5:1.
5 years ago
Matt Baer
3e1019f29d
Fix text contrast ratio on pinned post links
...
This also darkens the text color of the blog description, to
differentiate it from the pinned links.
5 years ago
Matt Baer
06054a2cd7
Merge pull request #268 from writeas/noindex-invite-links
...
Add 'X-Robots-Tag: noindex' header to invite URLs
5 years ago
Matt Baer
da0455198d
Merge pull request #194 from writeas/table-borders
...
lightly style tables in posts
5 years ago
Matt Baer
5b6e008118
Merge pull request #277 from paddatrapper/oauth-gitlab
...
Add Gitlab OAuth
5 years ago
Kyle Robbertze
26b6ed5f4f
simplify gitlab oauth config
5 years ago
Matt Baer
f126ac624a
Merge pull request #276 from writeas/dateless-pinned-posts
...
Don't show date on pinned post page
5 years ago
Kyle Robbertze
c292512b9d
add Gitlab OAuth
5 years ago
Matt Baer
f76bfebfde
Add dedicated Title field to WYSIWYG editor
...
This takes styling from the Classic Editor on Write.as.
It adds all application code for auto-saving the title, publishing it
with the post body, and including it in the word count.
5 years ago
Matt Baer
4b0833435f
Restyle WYSIWYG editor
...
- Match light / dark theme
- Make editor fill the viewport
- Remove borders
- Add spacing in toolbar
5 years ago
Matt Baer
9780f0bbb9
Reformat prose.less
5 years ago
Matt Baer
d277e283d5
Move ProseMirror styles to less dir
...
This keeps it consistent with all our other CSS.
5 years ago
Rob Loranger
7bccb3d7f1
fix not setting value to existing post on edit
5 years ago
Rob Loranger
b3a541ab09
markdown preserved between edit/load/save
5 years ago
Rob Loranger
ee712bbfaa
WIP: implement WYSIWYG editor w/ prosemirror
5 years ago
Rob Loranger
cb1553d67e
add basic prosemirror instructions
5 years ago
Rob Loranger
58f27717be
update .gitignore to ignore node_modules
5 years ago
Rob Loranger
f1f5dbb128
add prosemirror build environment
5 years ago
Matt Baer
bad970c60a
Merge pull request #275 from writeas/fix-v4-migrations
...
Fix V4 + V5 SQLite migrations
5 years ago
Matt Baer
2aeb994b04
Don't show date on pinned post page
...
Ref T669
5 years ago
Matt Baer
172a6dba25
Merge pull request #263 from writeas/typography-alpha
...
Typography Improvements, Vol. I
5 years ago
Matt Baer
eda267e30a
Revert accidental h2 font-size change
5 years ago
Matt Baer
32f3fcb859
Skip IF [TABLE] NOT EXISTS on v4 migrations
...
We'd like these queries to fail correctly if the tables exist.
5 years ago
Matt Baer
61ddcff2c0
Add copyright notices to fixed files
5 years ago
Matt Baer
83b2c5a21b
Fix unique index on v5 SQLite migration
...
This index needed a unique name in order for this query to succeed.
5 years ago
Matt Baer
471ef4d403
Fix "NOT NULL column with NULL" error in v5 SQLite migration
...
Previously, this migration would cause the error: "Cannot add a NOT NULL
column with default value NULL". This fixes that by setting the default
value for new columns to '' (empty string). It updates the query builder
to support this, too.
5 years ago
Matt Baer
bb5da1d3f5
Break up v5 table ALTERs for SQLite
...
Combining all operations into a single query was causing problems in
SQLite. This fixes that by breaking them up into separate queries. It
also moves one column length change to only run on MySQL, since SQLite
doesn't need it.
5 years ago
Matt Baer
f1ffcf96ec
Remove user_id and remote_user_id constraints in v4&v5 migrations
...
It's not straightforward to remove these constraints in SQLite, so this
just skips it entirely. Since both of these migrations are part of the
same WF release, this should have minimal impact on admins.
5 years ago
Matt Baer
5b2612af54
Fix `created_at` default val in v4 migration for SQLite
...
This previously used a default timestamp value which caused the
migration to fail for SQLite databases.
5 years ago
Matt Baer
793380c1d9
Merge pull request #269 from writeas/lift-reader-limits
...
Adjust Reader limits and filtering
5 years ago
Matt Baer
2db6c33a41
Consolidate /signup page link logic
...
This moves logic for determining whether or not to show a "Sign up" page
on /signup (i.e. because the `/` route shows another, non-signup page)
into the AppCfg.SignupPath() method. It also changes various signup
links to use this value.
5 years ago
Matt Baer
151ec71163
Land on login form for private instances
5 years ago
Matt Baer
7aef706977
Fix Reader nav link on WFModesty + Private instance
...
(that is, hide the footer nav link when logged out)
5 years ago
Matt Baer
c71d020e86
Merge pull request #261 from techknowlogick/update-cli
...
Refactor CLI
5 years ago
Matti R
2550804d93
return clear error
5 years ago
Matti R
b6044120ef
go fmt & update per feedback
5 years ago
Matt Baer
6aa8de3a4b
Add Gopher support
...
This adds gopher support to WriteFreely -- both single- and multi-user
instances. It is off by default, but can be enabled with the new
`gopher_port` config value in the `[server]` section.
When enabled, multi-user instances will show all public blogs at
gopher://[host]:[gopher_port]/ -- otherwise, blogs are accessible at
gopher://[host]:[gopher_port]/[blog]/
This is just a proof of concept for now. We still need to handle some
edge cases and different configurations, like private instances.
Ref T559
5 years ago
Matt Baer
fca864c94a
Merge pull request #266 from writeas/fix-social-images
...
Fix image extraction for social metadata
5 years ago
Matt Baer
7283b17400
Merge pull request #267 from writeas/update-contributing-guide
...
Update Contributing guide
5 years ago
Matt Baer
4595d480ae
Merge pull request #264 from writeas/admin-dashboard-redesign
...
Admin dashboard redesign
Closes T694
5 years ago
Matt Baer
cd2e725746
Merge pull request #270 from nkoehring/js-html-aliases
...
add js, jsx and html aliases for highlightjs
5 years ago
CJ Eller
e140fe139f
Add {{end}} on line 97
5 years ago
CJ Eller
6027f7cfdc
Fixed pagination for Novel
5 years ago
koehr
b42760abab
add js, jsx and html aliases for highlightjs
5 years ago
Matt Baer
f903388a28
Fix admin nav rendering on user viewing
5 years ago