Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hiboo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felinn-glotte
Hiboo
Commits
bf7e63b8
Unverified
Commit
bf7e63b8
authored
2 years ago
by
f00wl
Browse files
Options
Downloads
Patches
Plain Diff
fix typo
parent
bba07709
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hiboo/application/social.py
+2
-2
2 additions, 2 deletions
hiboo/application/social.py
with
2 additions
and
2 deletions
hiboo/application/social.py
+
2
−
2
View file @
bf7e63b8
...
...
@@ -145,14 +145,14 @@ class SynapseApplication(base.SAMLApplication):
"""
Delete a user account from Matrix
"""
mxid
=
"
@
"
+
profile
.
username
+
"
:
"
+
profile
.
service
.
config
.
get
(
"
domain
"
)
self
.
api
(
profile
.
service
,
"
post
"
,
"
v1/d
a
sactivate/
"
+
mxid
,
data
=
dict
(
erase
=
False
))
self
.
api
(
profile
.
service
,
"
post
"
,
"
v1/d
e
sactivate/
"
+
mxid
,
data
=
dict
(
erase
=
False
))
@base.hook
(
models
.
Profile
.
START
,
"
purge
"
,
"
purge-blocked
"
,
"
purge-deleted
"
)
def
delete_with_purging
(
self
,
profile
):
"""
Purge a user account from Matrix
"""
mxid
=
"
@
"
+
profile
.
username
+
"
:
"
+
profile
.
service
.
config
.
get
(
"
domain
"
)
self
.
api
(
profile
.
service
,
"
post
"
,
"
v1/d
a
sactivate/
"
+
mxid
,
data
=
dict
(
erase
=
True
))
self
.
api
(
profile
.
service
,
"
post
"
,
"
v1/d
e
sactivate/
"
+
mxid
,
data
=
dict
(
erase
=
True
))
@register
(
"
writefreely
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment