-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert markdown content in LinkedIn #69
Conversation
lib/plugins/linkedin.py
Outdated
if len(images) > 20: | ||
warnings = f"A maximum of 20 images, not {len(images)}, can be included in a single linkedin post." | ||
images = images[:20] | ||
else: | ||
warnings = "" | ||
|
||
# convert markdown formatting because Mastodon doesn't support it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a shared function in both classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I create a function in galaxy_social.py
to be used by plugins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about the new commit?
I guess it's time for a client base class that ships as a default plugin and defines the method? |
That class could also raise NotImplemented for format_content and create_post, i.e. enforce that derived client classes define these methods. |
So should I just revert the change to have a simple code for the conversion of LinkedIn content and work on the client base class later? |
Sounds good from my side, yes. |
Ready for review @wm75 |
Had an idea for a simpler implementation, but you've worked out everything that's required @arash77 ! |
Same as #58