mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 03:20:17 +00:00
commit
96eb800eaa
2 changed files with 3 additions and 11 deletions
|
@ -648,10 +648,7 @@ func deleteFederatedPost(app *App, p *PublicPost, collID int64) error {
|
||||||
|
|
||||||
for si, instFolls := range inboxes {
|
for si, instFolls := range inboxes {
|
||||||
na.CC = []string{}
|
na.CC = []string{}
|
||||||
for _, f := range instFolls {
|
na.CC = append(na.CC, instFolls...)
|
||||||
na.CC = append(na.CC, f)
|
|
||||||
}
|
|
||||||
|
|
||||||
da := activitystreams.NewDeleteActivity(na)
|
da := activitystreams.NewDeleteActivity(na)
|
||||||
// Make the ID unique to ensure it works in Pleroma
|
// Make the ID unique to ensure it works in Pleroma
|
||||||
// See: https://git.pleroma.social/pleroma/pleroma/issues/1481
|
// See: https://git.pleroma.social/pleroma/pleroma/issues/1481
|
||||||
|
@ -717,9 +714,7 @@ func federatePost(app *App, p *PublicPost, collID int64, isUpdate bool) error {
|
||||||
// add all followers from that instance
|
// add all followers from that instance
|
||||||
// to the CC field
|
// to the CC field
|
||||||
na.CC = []string{}
|
na.CC = []string{}
|
||||||
for _, f := range instFolls {
|
na.CC = append(na.CC, instFolls...)
|
||||||
na.CC = append(na.CC, f)
|
|
||||||
}
|
|
||||||
// create a new "Create" activity
|
// create a new "Create" activity
|
||||||
// with our article as object
|
// with our article as object
|
||||||
if isUpdate {
|
if isUpdate {
|
||||||
|
|
|
@ -247,10 +247,7 @@ func (b *CreateTableSqlBuilder) ToSQL() (string, error) {
|
||||||
}
|
}
|
||||||
things = append(things, columnStr)
|
things = append(things, columnStr)
|
||||||
}
|
}
|
||||||
for _, constraint := range b.Constraints {
|
things = append(things, b.Constraints...)
|
||||||
things = append(things, constraint)
|
|
||||||
}
|
|
||||||
|
|
||||||
if thingLen := len(things); thingLen > 0 {
|
if thingLen := len(things); thingLen > 0 {
|
||||||
str.WriteString(" ( ")
|
str.WriteString(" ( ")
|
||||||
for i, thing := range things {
|
for i, thing := range things {
|
||||||
|
|
Loading…
Reference in a new issue