Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
switch back to siteURL for plugin api
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleedavis committed May 7, 2019
1 parent f983c28 commit d3f45f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "com.github.scottleedavis.mattermost-plugin-remind",
"name": "Remind Bot Mattermost Plugin",
"description": "Sets Reminders",
"version": "0.2.2",
"version": "0.2.3",
"server": {
"executables": {
"linux-amd64": "server/dist/plugin-linux-amd64",
Expand Down
3 changes: 2 additions & 1 deletion server/activate.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ func (p *Plugin) OnDeactivate() error {

func (p *Plugin) OnConfigurationChange() error {
p.ServerConfig = p.API.GetConfig()
p.URL = "http://127.0.0.1" + fmt.Sprintf("%s", *p.ServerConfig.ServiceSettings.ListenAddress)
//p.URL = "http://127.0.0.1" + fmt.Sprintf("%s", *p.ServerConfig.ServiceSettings.ListenAddress)
p.URL = fmt.Sprintf("%s", *p.ServerConfig.ServiceSettings.SiteURL)
return nil
}

Expand Down

0 comments on commit d3f45f1

Please sign in to comment.