aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
authorFChannel <>2021-05-12 23:06:40 -0700
committerFChannel <>2021-05-12 23:06:40 -0700
commitd46dc93dce176e8e2c054a1454c097123a08b4af (patch)
tree022698ceec742efbd55ffcaf7919dd370dd2fdba /OutboxPost.go
parent88521d92e6228a5bbfe1b0a5303bb1bd9cb5d955 (diff)
admin tripcode
Diffstat (limited to 'OutboxPost.go')
-rw-r--r--OutboxPost.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/OutboxPost.go b/OutboxPost.go
index cb0f988..fd87506 100644
--- a/OutboxPost.go
+++ b/OutboxPost.go
@@ -364,8 +364,7 @@ func ObjectFromForm(r *http.Request, db *sql.DB, obj ObjectBase) ObjectBase {
obj.Preview = CreatePreviewObject(obj.Attachment[0])
}
- obj.AttributedTo = CreateNameTripCode(r.FormValue("name"))
- obj.AttributedTo = EscapeString(obj.AttributedTo)
+ obj.AttributedTo = EscapeString(r.FormValue("name"))
obj.Name = EscapeString(r.FormValue("subject"))
obj.Content = EscapeString(r.FormValue("comment"))
@@ -382,7 +381,6 @@ func ObjectFromForm(r *http.Request, db *sql.DB, obj ObjectBase) ObjectBase {
activity.To = append(activity.To, originalPost.Id)
}
-
if originalPost.Id != "" {
if !IsActivityLocal(db, activity) {
id := GetActorFromID(originalPost.Id).Id