|
|
|
@ -2,18 +2,21 @@
|
|
|
|
|
; -------------------------------Locals-------------------------------
|
|
|
|
|
PostToLocals:
|
|
|
|
|
CurrentSite := "Locals"
|
|
|
|
|
; DevModeMsgBox("clik ok to continue")
|
|
|
|
|
; @todo: Add auto-login to locals
|
|
|
|
|
SaveOrPostProgress(Message:="Navigating to Post Creation Page",PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IniRead, LocalsURL, %SettingsIniFilepath%, %ScriptSettingsSection%, LocalsURL, %A_Space%
|
|
|
|
|
if(LocalsURL = "" OR !InStr(LocalsURL, "/share/post")){
|
|
|
|
|
Message = Please add your Locals Profile URL to the settings.ini file under`n`n[General]`nLocalsURL=`n`nURL Needs to end in: /share/post
|
|
|
|
|
|
|
|
|
|
if(LocalsURL = ""){
|
|
|
|
|
Message = Please add your Locals Profile URL to the settings.ini file under`n`n[General]`nLocalsURL=
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
|
|
|
|
Return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
; /share/post is the legacy new post page.
|
|
|
|
|
; Starting in 2024 all posts are published through the home page now.
|
|
|
|
|
LocalsURL := StrReplace(LocalsURL, "/share/post")
|
|
|
|
|
|
|
|
|
|
Status := NavigateFromBaseURLTo(LocalsURL)
|
|
|
|
|
if(Status = "Failed")
|
|
|
|
|