albumy icon indicating copy to clipboard operation
albumy copied to clipboard

A photo-sharing social networking built with Flask.

Results 13 albumy issues
Sort by recently updated
recently updated
newest added

Bumps [pillow](https://github.com/python-pillow/Pillow) from 7.1.1 to 9.0.1. Release notes Sourced from pillow's releases. 9.0.1 https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html Changes In show_file, use os.remove to remove temporary images. CVE-2022-24303 #6010 [@​radarhere, @​hugovk] Restrict builtins within...

dependencies

Can you make uploaded images convert to webp format? cause filesize is smaller than jpg so you save storage space

我是初学者小白, 看这书有一段时间了, 消化起来有些慢, 不过好在每天都要跟着书和源码来敲代码学习.今天发现了一个问题就是更换邮箱能收到邮件, 却无法改掉数据库里的邮箱地址, 开始以为代码有问题, 再次检查源码发现了一个问题, @user_bp.route('/settings/change-email', methods=['GET', 'POST']) @fresh_login_required def change_email_request(): form = ChangeEmailForm() if form.validate_on_submit(): token = generate_token(user=current_user, operation=Operations.CHANGE_EMAIL, new_email=form.email.data.lower()) send_confirm_email(to=form.email.data, user=current_user, token=token) 问题所在 flash('Confirm email sent,...

Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.1 to 2.11.3. Release notes Sourced from jinja2's releases. 2.11.3 This contains a fix for a speed issue with the urlize filter. urlize is likely to be...

dependencies

需增加Permission类的__repr__方法 def __repr__(self): return '' % (self.id,self.name)

enhancement

由于代码是在学习本章时从头开始写的,所以没有fork,部分代码排版也不相同,为了不影响albumy本来的排版,所以放在issue中,希望能帮助看到的人和作者。 https://github.com/amchii/FlaskAlbumy README.md: 来自于李辉的Flask书上的示例程序:[Albumy](https://github.com/greyli/albumy) , 个人意见向地改进了少许代码,修复了一些已知bug : 1. [新评论未进行`photo.can_comment`验证的bug](https://github.com/greyli/albumy/issues/24) [`if not photo.can_comment`](https://github.com/amchii/FlaskAlbumy/blob/5aae074617bf96a7ab7c7febc9b07e057530bfda/albumy/blueprints/main.py#L283) 2. [收藏关注时登陆后的跳转问题](https://github.com/greyli/albumy/issues/22) [`if request.method.lower() == 'get':`](https://github.com/amchii/FlaskAlbumy/blob/5aae074617bf96a7ab7c7febc9b07e057530bfda/albumy/blueprints/main.py#L335) 3. [鼠标在头像上悬浮的时候出现的用户信息不能即时更新](https://github.com/greyli/albumy/issues/16) [`$el.popover('dispose');`](https://github.com/amchii/FlaskAlbumy/blob/5aae074617bf96a7ab7c7febc9b07e057530bfda/albumy/static/js/script.js#L75) 4. [关注页分页的bug](https://github.com/greyli/albumy/issues/25) [`pagination = user.following.filter(Follow.followed_id != user.id).paginate(page=page, per_page=per_page)`](https://github.com/amchii/FlaskAlbumy/blob/4fe090fc04b1e40120d85105f919a910f4fd386b/albumy/blueprints/user.py#L96) 5....

https://github.com/greyli/albumy/blob/943829b819b7bda6921d6c0fe277c75cd6a98033/albumy/blueprints/main.py#L261 虽然说当photo.can_comment为False时不会渲染评论表单,但是完全可以获得一个csrf_token然后按照格式post,在网站demo中测试成功。 http://albumy.helloflask.com/photo/636?page=1 其中内容为2的评论就是我在comment disabled下提交的。

bug

比如我在弹出的窗口中点击了关注页面会显示取消关注,但是当我移开鼠标后再次放在头像上propover还是保持原有的关注状态并(关注),并没有更新,我的解决办法是每次隐藏之后 $el.popover('destroy'); 掉该popover

bug

https://github.com/greyli/albumy/blob/943829b819b7bda6921d6c0fe277c75cd6a98033/albumy/templates/user/followers.html#L11 程序设置每页展示20用户,当关注数为21时第2页的follows|length为1,却被这个if给过滤掉了。 还有用户初始化时会首先关注自己,当获取第一页关注用户时 https://github.com/greyli/albumy/blob/943829b819b7bda6921d6c0fe277c75cd6a98033/albumy/blueprints/user.py#L85 会同时获取到自己,然后被 https://github.com/greyli/albumy/blob/943829b819b7bda6921d6c0fe277c75cd6a98033/albumy/templates/user/followers.html#L13 这条语句过滤掉,这就导致第一页会只显示19个用户