mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 19:34:19 +00:00
264bef03b1
This allows setting a URL, and then renders a <link> element in the head of the blog. It requires a database migration. Ref T744
33 lines
678 B
Go
33 lines
678 B
Go
/*
|
|
* Copyright © 2023 Musing Studio LLC.
|
|
*
|
|
* This file is part of WriteFreely.
|
|
*
|
|
* WriteFreely is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License, included
|
|
* in the LICENSE file in this source code package.
|
|
*/
|
|
|
|
package migrations
|
|
|
|
func fediverseVerifyProfile(db *datastore) error {
|
|
t, err := db.Begin()
|
|
if err != nil {
|
|
t.Rollback()
|
|
return err
|
|
}
|
|
|
|
_, err = t.Exec(`ALTER TABLE remoteusers ADD COLUMN url ` + db.typeVarChar(255) + ` NULL` + db.after("shared_inbox"))
|
|
if err != nil {
|
|
t.Rollback()
|
|
return err
|
|
}
|
|
|
|
err = t.Commit()
|
|
if err != nil {
|
|
t.Rollback()
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|