Comments (4)
The existing filter:parse.post
hook can still be used, and some additional options passed in.
A good starting point might be
{
type: enum [default, plaintext, activitypub.note, activitypub.article]
}
Whereby;
- if
type
isdefault
or falsy, then regular post parsing is carried out (so no change for existing plugins) - if
type
isactivitypub.note
, then a severely stripped down version is sent (minimal allowed tags, most plugins would opt out of parsing, inline images removed) - if
type
isactivitypub.article
, then a less stripped down version is sent (inline images, minimal allowed tags, some plugins opt out of parsing) type.plaintext
is added for future functionality but is outside the scope of this issue at this time
from nodebb.
from nodebb.
The above commit allows plugins to alter behaviour based on the passed-in flag, but stricter sanitization is required at the end as well.
from nodebb.
An additional sanitization step was added on the way in, so that useless classes are removed prior to being saved in database. This only affects content
but not sourceContent
.
from nodebb.
Related Issues (20)
- api.patch doesnt work
- Quote reply button does not work for remote posts
- Note deletion HOT 1
- `buildRecipients` needs refactoring
- Some features need UX hints if user settings interfere
- Inbox Forwarding HOT 1
- Clicking post timestamp should not append to back button history
- ability to chat with a specific group in the forum HOT 1
- search in chat room not displaying results
- Record received activity ids
- docker image size exploded with version 3.8.x
- Nodeinfo endpoint?
- visibility of votes: new feature to make votes visible to logged in users only HOT 2
- When federating out replies, also send them to OP
- `@context` in actor objects is missing `https://w3id.org/security/v1` HOT 5
- Mentions plugin should automatically rewrite any mentions specified to NodeBB-specific `user/` url HOT 1
- New API: Verify User Exists in Group HOT 1
- Instance-level domain blocks
- Deletion of remote users HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodebb.