diff --git a/daemon.py b/daemon.py index 1121656d..7a19e04a 100644 --- a/daemon.py +++ b/daemon.py @@ -613,5 +613,5 @@ def runDaemon(baseDir: str,domain: str,port=80,httpPrefix='https', \ httpd.ocapAlways, \ debug,httpd.acceptedCaps),daemon=True) httpd.thrInboxQueue.start() - print('Running ActivityPub daemon on ' + domain + ' port ' + str(port)) + print('Running ActivityPub server on ' + domain + ' port ' + str(port)) httpd.serve_forever() diff --git a/epicyon.py b/epicyon.py index cb3b4589..e80ad50c 100644 --- a/epicyon.py +++ b/epicyon.py @@ -163,6 +163,12 @@ parser.add_argument('--cwsubject','--subject', dest='subject', type=str,default= help='Subject of content warning') parser.add_argument('--reply','--replyto', dest='replyto', type=str,default=None, \ help='Url of post to reply to') +parser.add_argument("--followersonly", type=str2bool, nargs='?', \ + const=True, default=True, \ + help="Send to followers only") +parser.add_argument("-c","--client", type=str2bool, nargs='?', \ + const=True, default=False, \ + help="Use as an ActivityPub client") args = parser.parse_args() debug=False @@ -263,8 +269,8 @@ if args.message and nickname: #ccUrl=httpPrefix+'://'+domain+'/users/'+nickname+'/followers' ccUrl=None sendMessage=args.message - followersOnly=True - clientToServer=False + followersOnly=args.followersonly + clientToServer=args.client attachedImageDescription=args.imageDescription useBlurhash=args.blurhash sendThreads = []